package com.example.nio.example;

import java.util.ArrayList;
import java.util.function.Function;
import java.util.stream.Stream;

public class FunctionExample {

    public static void test(FunctionI t,Integer i) throws Exception {
        System.out.println(t.apply(i));
    }
    public static void main(String[] args) throws Exception {
        test(String::valueOf, 10);
    }
}

@FunctionalInterface
interface FunctionI{
    String apply(int i) throws Exception;
}